﻿#if WINDOWS

using System.Windows.Media;
#else

using Avalonia.Media;

#endif
namespace KinonekoSoftware.Studio.Pages.Tools.Prompts.Birthday
{
    public enum BirthdayPromptHintType : int
    {
        All,
        Latest1Month,
        Latest3Month,
        January,
        February,
        March,
        April,
        May,
        June,
        July,
        August,
        September,
        October,
        November,
        December,
    }
    
    public class BirthdayPromptHint : ObservableObject
    {
        private readonly CodariaDB.Documents.Composites.Birthday _birthday;
        private readonly InstanceCache                     _character;

        public BirthdayPromptHint(CodariaDB.Documents.Composites.Birthday birthday, InstanceCache character)
        {
            _birthday  = birthday;
            _character = character;
        }

        public int    Month  => _birthday.Month;
        public int    Day    => _birthday.Day;
        public string Avatar => _character.Avatar;
        public string Name   => _character.Name;
        public string Intro  => _character.Intro;

        
        public SolidColorBrush Foreground => BirthdayPromptsViewModel.GetForeground(Month);
        public SolidColorBrush Background => BirthdayPromptsViewModel.GetBackground(Month);
    }
}